package com.sailfish.springbootdemo.service.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.LineBaseBigType;

import java.util.List;

public interface LineBaseBigTypeService {

    /**
     * 查询所有
     *
     * @param searchValue
     * @return
     */
    List<LineBaseBigType> getAllLineBaseBigType(String searchValue);

    /**
     * 新增或者更新
     *
     * @return
     */
    Result addOrUpdateLineBaseBigType(LineBaseBigType lineBaseBigType, String mode);

    /**
     * 删除
     *
     * @param lineBaseBigTypeId
     * @return
     */
    Result deleteLineBaseBigType(Integer lineBaseBigTypeId);

    /**
     * 按照大类分类查询所有的小类和规则项
     *
     * @return
     */
    List<LineBaseBigType> getAllLineBaseBigTypeAndSmallAndRule();
}
